package jin.competition.jan20co12;

public class BankUser {
	private int accountId;// 账户号
	private double moneyInAccount=0;// 存款金额
	private String id;// 身份证号
	private String name;
	private String pwd;
	
	private double cash;//
	
	public int getAccountId() {
		return accountId;
	}
	public void setAccountId(int accountId) {
		this.accountId = accountId;
	}
	public double getMoneyInAccount() {
		return moneyInAccount;
	}
	public void setMoneyInAccount(double moneyInAccount) {
		this.moneyInAccount = moneyInAccount;
	}
	public String getId() {
		return id;
	}
	public void setId(String id) {
		this.id = id;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public double getCash() {
		return cash;
	}
	public void setCash(double cash) {
		this.cash = cash;
	}
	public String getPwd() {
		return pwd;
	}
	public void setPwd(String pwd) {
		this.pwd = pwd;
	}
	BankUser(String id,String name,String pwd){//注册身份证号，姓名，密码
		this.id=id;
		this.name=name;
		this.pwd=pwd;
		
	}
	BankUser(String id,String name,String pwd,double cash){//注册身份证号，姓名，密码，顺便存款
		this.id=id;
		this.name=name;
		this.pwd=pwd;
		this.cash=cash;
		
	}

}
/*
 * 实现银行的部分逻辑 
 * （1）用户都有一个自己的资金账户 
 * （2）用户可以存钱到账户 
 * （3）用户可以转账到其他人的账户 
 * （4）用户可以注销自己的资金账户
 */